package slxy.jiangtao.dts.entity.sys;

import slxy.jiangtao.dts.core.common.bean.BaseId;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Code must be sexy
 * Created by JiangTao on 2017/1/12.
 */
@Entity
@Table(name = "user_role")
public class UserRole extends BaseId {
    @Basic
    @Column(name = "user_id",nullable = false)
    private int userId;
    @Basic
    @Column(name = "role_id",nullable = false)
    private int roleId;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }
}
